home *** CD-ROM | disk | FTP | other *** search
- global gSoundLevel
-
- on mouseDown
- global glstAppParams
- repeat while the mouseDown
- set X to the mouseH
- if X > SpriteRight(28) then
- set X to SpriteRight(28)
- end if
- if X < SpriteLeft(28) then
- set X to SpriteLeft(28)
- end if
- set the locH of sprite 29 to X
- updateStage()
- end repeat
- set Percent to ((the locH of sprite 29 * 1.0) - (SpriteLeft(28) + (SpriteWidth(29) / 2))) / (SpriteWidth(28) - SpriteWidth(29))
- set gSoundLevel to integer(Percent * 7)
- setSound()
- beep()
- updateStage()
- end
-